﻿using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;

namespace QuDao
{
	public class SalesDailyDto
	{
		/// <summary>
        /// ID
        /// </summary>
		public long ID { get; set; }
		
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 代理ID
        /// </summary>
		public long AgentID { get; set; }
		
		/// <summary>
        /// 代理姓名
        /// </summary>
		public string AgentName { get; set; }
		
		/// <summary>
        /// 销售日期
        /// </summary>
		public DateTime SalesDate { get; set; }
		
		/// <summary>
        /// 销售区域ID
        /// </summary>
		public int AreaID { get; set; }
		
		/// <summary>
        /// 订单数量
        /// </summary>
		public int OrderNum { get; set; }
		
		/// <summary>
        /// 账单金额：收入为正数，支出为负数
        /// </summary>
		public decimal Amount { get; set; }
		
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
		
				
	}
	
	public class SalesDailyAddDto
	{
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 代理ID
        /// </summary>
		public long AgentID { get; set; }
		
		/// <summary>
        /// 代理姓名
        /// </summary>
		public string AgentName { get; set; }
		
		/// <summary>
        /// 销售日期
        /// </summary>
		public DateTime SalesDate { get; set; }
		
		/// <summary>
        /// 销售区域ID
        /// </summary>
		public int AreaID { get; set; }
		
		/// <summary>
        /// 订单数量
        /// </summary>
		public int OrderNum { get; set; }
		
		/// <summary>
        /// 账单金额：收入为正数，支出为负数
        /// </summary>
		public decimal Amount { get; set; }
		
				
	}
	
	/// <summary>
	/// 汇总数据对象（按天）
	/// </summary>
	public class SummaryOfDailyDto
	{
		/// <summary>
		/// 统计日期（格式：yyyy-MM-dd）
		/// </summary>
		public string StatDate { get; set; }

        /// <summary>
        ///订单总数量
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 订单总金额
        /// </summary>

        public decimal OrderAmount { get; set; }
    }

    /// <summary>
    /// 汇总数据对象（按月）
    /// </summary>
    public class SummaryOfMonthDto
    {
        /// <summary>
        /// 统计月份（格式：yyyy-MM）
        /// </summary>
        public string Month { get; set; }

        /// <summary>
        ///订单总数量
        /// </summary>
        public int OrderNum { get; set; }

        /// <summary>
        /// 订单总金额
        /// </summary>

        public decimal OrderAmount { get; set; }
    }

    /// <summary>
    /// 代理首页销售数据汇总数据
    /// </summary>
    public class SalesStatOfHomeDto
	{
        /// <summary>
        /// 日订单销售数量
        /// </summary>
        public int OrderNumOfDay { get; set; }

		/// <summary>
		/// 日订单销售金额
		/// </summary>

		public decimal OrderAmountOfDay { get; set; }

		/// <summary>
		/// 月订单销售数量
		/// </summary>
        public int OrderNumOfMonth { get; set; }

		/// <summary>
		/// 月订单销售金额
		/// </summary>

        public decimal OrderAmountOfMonth { get; set; }

    }
	
}